import request from './request';

/** 获取设备列表 */
export const getDeviceList = (data) => request('/device/app/list', 'get', data);

/** 获取点位列表 */
export const getPositionList = (data) => request('/position/page', 'get', data);

/** 获取设备详情 */
export const getDeviceDetail = (data) => request('/device/ups/data', 'get', data);

/** 获取ups设备分页配置数据 */
export const getUPSPageConfig = () =>
    request('/device/ups/config/page', 'get', {
        pageSize: 100,
        pageNum: 1
    });

/** 获取网格数据 */
export const getGridList = () => request('/grid/gridDownList', 'get');

/** 获取街道级别统计数据 */
export const getStreetLevelData = (data) => request('/position/street', 'get', data);

/** 根据街道获取点位统计数据 */
export const getPositionByStreet = (data) => request('/position/streetPosition', 'get', data);
